package com.hgyc.mom.wms.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hgyc.mom.wms.entity.WmsPurchaseReceipt;
import com.hgyc.mom.wms.vo.WmsPurchaseReceiptVO;

/**
 * 采购入库单主Service接口
 *
 * @author fwj
 * @since 2025-07-08
 */
public interface WmsPurchaseReceiptService extends IService<WmsPurchaseReceipt> {

    /**
     * 保存采购入库单主
     * @param wmsPurchaseReceiptVO 采购入库单主
     */
    void saveReceipt(WmsPurchaseReceiptVO wmsPurchaseReceiptVO);

    /**
     * 更新采购入库单主
     * @param wmsPurchaseReceiptVO 采购入库单主
     */
    void updateReceipt(WmsPurchaseReceiptVO wmsPurchaseReceiptVO);

    /**
     * 删除采购入库单主
     * @param ids 主键
     */
    void removeReceipt(List<Long> ids);

    /**
     * 导入数据
     * @param wmsPurchaseReceiptList 导入数据列表
     * @param updateSupport 是否更新已有数据
     * @return 导入结果消息
     */
    String importData(List<WmsPurchaseReceipt> wmsPurchaseReceiptList, boolean updateSupport);

}
